package cn.ldw.utils;

public enum  ErrorInfo {

    USERINFO_ERROR(10001, "密码或用户名不正确"),
    TOKEN_ERROR(10002, "token不合法"),
    TOKEN_EXPRIE(10003, "token已过期"),
    USER_EXIST(10004, "用户名不存在"),
    USERNAME_EXIST(10005, "用户名已存在");

    ErrorInfo(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    private int code;

    private String message;
}
